/**
 * 
 */
package com.moji.cyg.common.util;

/**
 * 类NumberUtil.java的实现描述：TODO 类实现描述
 * 
 * @author shengli.caosl 2012-3-5 上午9:44:12
 */
public class NumberUtil {

    public static int charToInt(char character) {
        if (!Character.isDigit(character)) {
            throw new IllegalArgumentException();
        }
        return Character.digit(character, 10);
    }

}
